package com.itheima.entry;

//有规则字符串转化成int类型，并罗列输出
public class TestSplit {
    public static void main(String[] args) {
        String s="12 34 56 32 11";
        String[] arr=s.split(" ");
        int[] in=new int[arr.length];
        for (int j = 0; j < in.length; j++) {
            int i1 = Integer.parseInt(arr[j]);
            in[j]=i1;
            System.out.println(in[j]);
        }


    }
}
